package model

type Category struct {
	Id       int      `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
	Category string   `json:"category" form:"category" gorm:"column:category;comment:分类"`
	Topics   []*Topic `gorm:"many2many:topic_category;"`
}

func (Category) TableName() string {
	return "category"
}
